#!/usr/bin/env python
#coding:utf-8

from distutils.core import setup
import py2exe
import pps_config

version = pps_config.__version__
description = 'Configure proxies for PPS'
name = "pps_config"
dist_dir = './bin'
includes = ["encodings", "encodings.*"]
options = {"py2exe":{
                "dist_dir": dist_dir,
                "compressed": 1,
                 "optimize": 2,
                 "includes": includes,
                 "bundle_files": 1}}
                 # when set to 1 will appera 'CreateActCtx' failed


setup(
    # The first three parameters are not required, if at least a
    # 'version' is given, then a versioninfo resource is built from
    # them and added to the executables.
    name = name,
    version = version,
    description = description,
    long_description = pps_config.__doc__,
    author = pps_config.__author__,
    author_email = pps_config.__email__,
    url = 'http://www.kder.info',
#    script_args = 'py2exe',
    license = pps_config.__license__,
#    comments = None,
#    file_description = description,
#    internal_name = name,
#    legal_trademarks = None,
#    original_filename = '3ProxySwitch.py',
#    private_build = None,
#    product_name = name,
#    product_version = version,
    options = options,
    zipfile = None,
    # targets to build
    console =[{"script":         "pps_config.py",
               # "icon_resources": [(1, "ICON.ico")]
               }],
#   windows  console = ["hello.py"],
    )
